<?php
class Admincp extends Admin_Controller{
	public function __construct(){
		parent::__construct();
	}

	public function change_lang(){
		if($this->input->is_ajax_request()){
			$lang = $this->input->post('lang');
			$this->session->unset_userdata('curent_language');
			$data['curent_language'] = array('code' => $lang);
			$this->session->set_userdata($data);
		}
	}
}